import { request } from '@/utils'

export default {
  // 获取公告列表
  getNoticeList: (params = {}) => request.get('/sys/notice/page', params),

  // 删除公告
  deleteNotice: (params = {}) =>
    request.post('/sys/notice/batch_delete', params),

  // 编辑公告
  updateNotice: (params = {}) =>
    request.post('/sys/notice/save_or_update', params),
}
